package com.shangxian.giveithome.service.impl;


import com.shangxian.giveithome.entity.RqCode;
import com.shangxian.giveithome.mapper.RqCodeMapper;
import com.shangxian.giveithome.service.RqCodeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class RqCodeServiceImpl implements RqCodeService {

    @Resource
    private RqCodeMapper rqCodeMapper;

    /**
     * 根据机构id与活动id查询二维码地址
     *
     * @param id
     * @param ac_id
     * @return
     */
    @Override
    public RqCode queryRqCode(Long id, Long ac_id) {
        return rqCodeMapper.queryByMeIdAndAcId(id, ac_id);
    }

}
